import request from "./request";

// 资源
export const getResources = (params = {}) =>
  request.get("/resource/list", { params });

export const saveOrUpdateResource = (data) => request.post("/resource", data);

export const deleteResource = (id) => request.delete(`/resource/${id}`);

export const updateResourceAnonymous = (data) =>
  request.put("/resource/anonymous", data);

export const getResourceOption = () => request.get("/resource/option");
